<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>习题 2</title>
</head>
<body>
<script>
    var firstNumber = prompt('Enter the first number', '');
    var secondNumber = prompt('Enter the second number', '');
    var theTotal = parseFloat(firstNumber) + parseFloat(secondNumber);
    document.write(firstNumber + ' added to ' + secondNumber + ' equals ' + theTotal);
</script>
</body>
</html>